package com.dp.proxy;

public class StaticProxy {

    private Target target;
    
    public StaticProxy(){};
    
    public StaticProxy(Target target){
        this.target = target;
    }
    
    public void say(String word){
        System.out.println("前置增强！");
        this.target.say(word);
    }

    public Target getTarget() {
        return target;
    }

    public void setTarget(Target target) {
        this.target = target;
    }

}
